package com.sample;

import org.apache.hadoop.ipc.ProtocolSignature;

import java.io.IOException;

public class HadoopRpcImpl implements RpcInterface {

    public static void main(String []args){

    }

    @Override
    public String getStudentName(String sid) {
        if ("G20210735010048".equals(sid)){
            return "chines_name : 黄耿铿(hgk)";
        }
        else{
            return null;
        }
    }

    @Override
    public long getProtocolVersion(String protocol,long clientVersion){
        return RpcInterface.versionID;
    }

    @Override
    public ProtocolSignature getProtocolSignature(String s, long l, int i) throws IOException {
        return new ProtocolSignature();
    }
}
